<?php
// oidc 认证服务

use think\facade\Route;
use app\resources\service\OldcService;


// 客户端获取  access_token
Route::post('/oidc/token', function () {
    $result = OldcService::getOidcToken();
    return json($result);
});

// 服务端获取验证地址
Route::get('oidc/o', function () {
    $result = OldcService::getKeysUrl();
    return json($result);
});

// 服务端验证 access_token
Route::get('/oldc/keys', function () {
    $result = OldcService::getKeys();
    return json($result);
});
